package com.chinasoft.ecommerceconsumptionanalysissystem.controller.requestbody;

public class KpiData {
    private double totalSales;      // 总销售额
    private int orderCount;         // 订单量
    private double averagePrice;    // 客单价
    private double growthRate;      // 增长率

    public KpiData(double totalSales, int orderCount, double averagePrice, double growthRate) {
        this.totalSales = totalSales;
        this.orderCount = orderCount;
        this.averagePrice = averagePrice;
        this.growthRate = growthRate;
    }

    public double getTotalSales() {
        return totalSales;
    }

    public void setTotalSales(double totalSales) {
        this.totalSales = totalSales;
    }

    public int getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(int orderCount) {
        this.orderCount = orderCount;
    }

    public double getAveragePrice() {
        return averagePrice;
    }

    public void setAveragePrice(double averagePrice) {
        this.averagePrice = averagePrice;
    }

    public double getGrowthRate() {
        return growthRate;
    }

    public void setGrowthRate(double growthRate) {
        this.growthRate = growthRate;
    }

    @Override
    public String toString() {
        return "KpiData{" +
                "totalSales=" + totalSales +
                ", orderCount=" + orderCount +
                ", averagePrice=" + averagePrice +
                ", growthRate=" + growthRate +
                '}';
    }
}
